-- GENERATED SPELL FOR [Darkspine Siren] --


function spell0_25073(pUnit, Event) --@Deafening Screech,n/a--
pUnit:FullCastSpellOnTarget(3589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25073', 8317, 1)
end

function spell1_25073(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_25073', 0, 1)
end

function spell2_25073(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(38033,pUnit)
pUnit:RegisterEvent('Sorts_25073', 10000, 1)
end

function spell3_25073(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25073', 7000, 1)
end

function Sorts_25073(pUnit, Event)
local choix_sorts_25073 = math.random(0, 3)
if choix_sorts_25073 == 0 then
pUnit:RegisterEvent('spell0_25073', 1, 1)
end
if choix_sorts_25073 == 1 then
pUnit:RegisterEvent('spell1_25073', 1, 1)
end
if choix_sorts_25073 == 2 then
pUnit:RegisterEvent('spell2_25073', 1, 1)
end
if choix_sorts_25073 == 3 then
pUnit:RegisterEvent('spell3_25073', 1, 1)
end
end

function mob25073_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25073', math.random(1500, 3000), 1)
end

function mob25073_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25073_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25073_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25073, 1, 'mob25073_Action')
RegisterUnitEvent(25073, 2, 'mob25073_Leave')
RegisterUnitEvent(25073, 3, 'mob25073_Kill')
RegisterUnitEvent(25073, 4, 'mob25073_Die')
